package com.xoomworks.rsfr.core.service;

import java.util.List;

import com.xoomworks.rsfr.model.Company;

/**
 * Company service interface.
 *
 * @author bogdan.sbiera
 */
public interface CompanyService extends BaseService<Company> {

    @Override
    Long save(final Company company);

    @Override
    void update(final Company company);

    @Override
    void deleteById(final Long userId);

    /**
     * Finds the companies that have a trust relation with the authenticated
     * user's company.
     *
     * @return List of trusted companies
     */
    public List<Company> findTrustedCompanies();
}
